import { useSbuscribe } from './store';

export default function Counter01() {
  const [counter, setCounter] = useSbuscribe({
    path: 'demo05p/Counter02',
    key: 'counter02',
    value: 0
  })

  console.log('counter02: ', counter)

  function clickHandle() {
    setCounter(counter + 1)
  }
  return (
    <button onClick={clickHandle}>
      counter02: {counter}
    </button>
  )
}